import axios from "axios";

axios.defaults.baseURL = "/api";

//发起登入请求

export let loginApi = (username, password) =>
  axios.post("/users/login", {
    username,
    password,
  });
